<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>新增客户资料</title>
		<%@ include file="/include/resources.jsp" %>
	</head>
	<body>
		<script type="text/javascript" src="msi/customer/customer.js"></script>
		<div style="padding:5px;background:#fafafa;border-bottom:1px solid #eee;">
			<table cellpadding="0" cellspacing="0" style="width:100%">
				<tr>
					<td>
						<a id="btn-submit1" href="#" class="easyui-linkbutton" plain="true" iconCls="icon-save" onclick="javascript:submitCust(1)">保存</a>
						<s:if test="customer.custId==null">
						<a id="btn-submit2" href="#" class="easyui-linkbutton" plain="true" iconCls="icon-saves" onclick="javascript:submitCust(2)">保存并新建</a>							
						</s:if>
						<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-cancel" onclick="javascript:$('#dialog').dialog('close')">关闭</a>
					</td>
				</tr>
			</table>
		</div>
		<form action="" method="post" id="customerForm">
			<input type="hidden" name="customer.custId" value='<s:property value="customer.custId"/>'/>
			<div style="padding:10px;">
				<div style="padding-left:5px;padding-right: 5px">
					<table cellpadding="0" cellspacing="3" >
						<tr>
							<th>公司名称：</th>
							<td><input type="text" name="customer.custName" value='<s:property value="customer.custName"/>'/></td>
							<th>从事行业：</th>
							<td><input type="text" name="customer.industry" value='<s:property value="customer.industry"/>'/></td>
						</tr>
						<tr>
							<th>联系电话:</th>
							<td><input type="text" name="customer.phone" value='<s:property value="customer.phone"/>'/></td>
							<th>传真:</th>
							<td><input type="text" name="customer.fax" value='<s:property value="customer.fax"/>'/></td>
						</tr>
						<tr>
							<th>地址:</th>
							<td colspan="3"><input type="text" name="customer.address" value='<s:property value="customer.address"/>'/></td>
						</tr>
						<tr>
							<th>联系人:</th>
							<td><input type="text" name="customer.linkman" value='<s:property value="customer.linkman"/>'/></td>
							<th>联系人电话:</th>
							<td><input type="text" name="customer.linkPhone" value='<s:property value="customer.linkPhone"/>'/></td>
						</tr>
						<tr>
							<th>邮箱:</th>
							<td><input type="text" name="customer.mail" value='<s:property value="customer.mail"/>'/></td>
							<th>网址:</th>
							<td><input type="text" name="customer.site" value='<s:property value="customer.site"/>'/></td>
						</tr>
					</table>
				</div>
			</div>
		</form>
	</body>
</html>